home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2254 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: student.uni-tuebingen.de!not-for-mail
  2. From: "Reinhard Katzmann" <Suamor@student.uni-tuebingen.de>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Must I free my linked lists? (GCC)
  5. Date: Mon, 29 Jan 1996 11:47:29 -0500
  6. Organization: InterNetNews at ZDV Uni-Tuebingen
  7. Distribution: world
  8. Message-ID: <69071070%suamor@student.uni-tuebingen.de>
  9. References: <4dudic$aif@vixen.cso.uiuc.edu> <4e2mrt$bc6@iss1.neckar-alb.de> <volker.0eqv@vb.franken.de> <4e835q$rej@tuegate.tue.nl> <volker.0et1@vb.franken.de>
  10. Reply-To: "suamor" <suamor@student.uni-tuebingen.de>
  11. NNTP-Posting-Host: gw192.informatik.uni-tuebingen.de
  12. X-NewsReader: IntuiNews 1.3a (7.9.95)
  13.  
  14. Volker Barthelmann schrieb in comp.sys.amiga.programmer ueber "Re: Must I
  15. free my linked lists? (GCC)":
  16. > Marcel van Kervinck (buex95a@asterix.urc.tue.nl) wrote:
  17. > : Volker Barthelmann (volker@vb.franken.de) wrote:
  18. > :
  19. > : : Probably all Amiga C libraries have a malloc() that frees all memory
  20. > : : after program termination, but no C compiler is required to do it.
  21. > :
  22. > : Wrong. They _are_ required to free the memory allocated by
  23. > : malloc and it's brothers. K&R II states so.
  24.  
  25. Wrong. It stated malloc that the memory _can_ be freed using free().
  26. It says nothing wether it is needed or not. It also tells nothing
  27. that this could be Compiler dependant so you better don't rely on it.
  28.  
  29. > I couldn't find this in K&R. Please quote what it says.
  30. >
  31. > If K&R really says this, it's an error in K&R AFAIK.
  32.  
  33. The german Version of K&R 2nd ed. has malloc() in the Index.
  34.  
  35. - Reinhard Katzmann
  36.  
  37. ---
  38. E-Mail: suamor@student.uni-tuebingen.de
  39.  
  40. One day I hope to finish my RPS Pertergrin
  41. Concept for Pertergin (yet in german) avalaible on Request
  42. Current Amiga-Project: GuideTool (GUI) V1.1BETA
  43.  
  44.